package com.i2silly.wxbot.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.i2silly.wxbot.dao.BotContactMapper;
import com.i2silly.wxbot.entity.BotContact;
import com.i2silly.wxbot.service.IBotContactService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.util.List;

/**
 * @program: wx-bot
 * @description：
 * @author: i2silly
 * @date: 2020年11月25日 11:22:04
 */
@Service
public class BotContactServiceImpl extends ServiceImpl<BotContactMapper, BotContact> implements IBotContactService {

    @Autowired
    private BotContactMapper mapper;

    @Override
    public boolean insertAll(List<BotContact> list) {
        return mapper.insertAll(list);
    }

    @Override
    public boolean delByPid(String pid) {
        return mapper.delByPid(pid);
    }

    @Override
    public List<BotContact> listByPid(String pid) {
        return mapper.selectByPid(pid);
    }
}
